package com.opal.system.service.impl;

import com.opal.system.entity.table.OrgHrorg;
import com.opal.system.mapper.oracle.TbmImportdataMapper;
import com.opal.system.service.StoredProcedureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.Map;

@Service
public class StoredProcedureServiceImpl implements StoredProcedureService {

    @Autowired
    TbmImportdataMapper tbmImportdataMapper;

    @Override
    @Transactional("oracleTransactionManager")
    public int CallDelDuplicate(OrgHrorg orgHrorg) {
        Map map = new HashMap();
        map.put("pkHrorg",orgHrorg.getPkHrorg());
        map.put("time",orgHrorg.getTime());
        map.put("result",null);
        tbmImportdataMapper.CallDelDuplicate(map);
        int i = (int)map.get("result");
        return i;
    }
}
